package com.fang.study;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description TODO
 * @date 2021/12/21 9:30 下午
 **/
public class Test02_BeanFactory {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
        System.out.println(applicationContext.getBean("user"));
    }
}
